package com.farm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.farm.entity.Product;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    
    @Select("SELECT DISTINCT category FROM product WHERE deleted = 0")
    List<String> selectAllCategories();
} 